package com.lelouch.wetlandcommon.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author lcy
 * @create 2018-09-18 16:31
 */
@Document(collection = "TestEntity")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TestEntity implements Serializable {
    @Id
    private String id;
    private String name;
}
